<template>
    <!-- 所有子页面显示在这里 -->
    <router-view/>
</template>

<script>
import api from "./service/api";

export default {
    name: "App.vue",
    mounted() {
        const store = this.$store
        const route = this.$route;
        if(store.getters.userToken){
            api.user.info().then(info=>{
                store.commit('setLoginUserInfo',info)
            })
        }
    }
}
</script>

<style>

</style>